<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #map {
            width: 640px;
            height: 400px;
            border: 2px solid black;
        }
    </style>
</head>
<body>
    <div id="map"></div>
    <script src="https://api.map.baidu.com/api?v=3.0&ak=SsstGAdGm65rD0zoPT29YBO6g0B0zyGR"></script>
    <script>
        let mapdiv = document.getElementById('map');
        let map = new BMap.Map(mapdiv); //地图实例
        // 设置地图的初始化状态  纬度：39, 经度：116
        let point = new BMap.Point(116, 39);
        map.centerAndZoom(point, 15);
        map.enableScrollWheelZoom(true);
    </script>
</body>
</html>



